import request from '@/utils/requestUtil'

export function memberLogin(data) {
	return request({
		method: 'POST',
		// url: '/sso/login',
		url: '/auth/login',
		// header: {
		// 	'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
		// },
		data: data
	})
}

export function memberInfo() {
	return request({
		method: 'GET',
		url: '/auth/info'
	})
}

// 获取验证码
export function getCodeImg() {
	return request({
		url: '/code',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000
	})
}
